﻿using DAL.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BLL.Interface
{
    public interface IUserinfoImpl:IImpl
    {
        UserInfo? Login(string username, string userpass);

        IList<UserInfo> GetList();


        UserInfo? Find(int id);


        bool Delete(int id);


        bool Update(int id, UserInfo userInfo);

        bool Add(UserInfo userInfo);


        (int, IList<UserInfo>) GetList(int rows, int page);

        IList<UserInfo> GetUserInfo(int id);

        IList<UserInfo> GetUserInfo(string username);

        
    }
}
